package com.github.ilioili.justdoit.model.dao;

import android.os.Handler;
import android.os.Looper;

import com.github.ilioili.justdoit.util.sql.SqlCallback;

/**
 * Created by User on 16/6/23.
 */
public class BaseDao {
    public static void post(final SqlCallback callback, final Object data){
        new Handler(Looper.getMainLooper()).post(new Runnable() {
            @Override
            public void run() {
                callback.onSucess(data);
            }
        });
    }
}
